Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor cli #258

Merged
merged 4 commits into from
Mar 21, 2024
Merged

refactor cli #258

merged 4 commits into from
Mar 21, 2024

Conversation

krancour
Copy link
Member

@krancour krancour commented Mar 19, 2024

Working on #229, which is in-turn an enabled for akuity/kargo#1330, I intend to add at least a couple new flags.

I decided I'd like to get CLI refactoring similar to what was done in Kargo proper out of the way first in order to have a nice, clean starting point.

Edit: This also undoes the awkward bit where the main program looks at argo 0 to decide on running the CLI or the action. The action is now just a hidden command of the CLI.

Signed-off-by: Kent Rancourt <[email protected]>
@krancour krancour requested a review from hiddeco March 19, 2024 21:46
@krancour krancour self-assigned this Mar 19, 2024
@krancour krancour requested a review from a team as a code owner March 19, 2024 21:47
Copy link

netlify bot commented Mar 19, 2024

Deploy Preview for docs-kargo-render-akuity-io ready!

Name Link
🔨 Latest commit f97b009
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-render-akuity-io/deploys/65faff421d8c580008c30f99
😎 Deploy Preview https://deploy-preview-258.bookkeeper.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 6.64557% with 295 lines in your changes are missing coverage. Please review.

Project coverage is 20.81%. Comparing base (bd33988) to head (f97b009).

Files Patch % Lines
cmd/root_cmd.go 0.00% 196 Missing ⚠️
cmd/action_cmd.go 26.25% 59 Missing ⚠️
cmd/version_cmd.go 0.00% 27 Missing ⚠️
cmd/main.go 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #258      +/-   ##
==========================================
- Coverage   20.90%   20.81%   -0.09%     
==========================================
  Files          26       22       -4     
  Lines        1818     1797      -21     
==========================================
- Hits          380      374       -6     
+ Misses       1404     1390      -14     
+ Partials       34       33       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Kent Rancourt <[email protected]>
@krancour krancour requested a review from hiddeco March 20, 2024 14:28
@krancour krancour force-pushed the krancour/cli-cleanup branch from 8a62aa3 to 4cc8212 Compare March 20, 2024 15:08
Copy link
Contributor

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the recent changes made to Kargo, and while taking note that I still need to ramp up my knowledge of this code base, this LGTM.

@hiddeco
Copy link
Contributor

hiddeco commented Mar 20, 2024

(Linter does not agree though, but that should be addressable).

@krancour
Copy link
Member Author

(Linter does not agree though, but that should be addressable).

Whoops. Something snuck in from another branch I was working on.

@krancour krancour merged commit 4812fe0 into akuity:main Mar 21, 2024
9 of 11 checks passed
@krancour krancour deleted the krancour/cli-cleanup branch March 21, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants